<!-- components/ValuationCard.vue -->
<template>
  <view class="valuation-card">
    <view class="header">
      
      <view class="title flex">
        <view class="icon-box flex">
          <!-- <image
            class="icon-box-image"
            src="/static/tags.png"
            mode="scaleToFill"
          /> -->
        </view>
        <text>估值价格</text>
      </view>
      <text class="badge">关键结果</text>
    </view>

    <view class="price-section">
      <text class="sub-title">二手参考价范围</text>
      <view class="price-value">
        <text class="gradient-text">{{ priceRange }} </text>元
      </view>
      <text class="desc">基于市场数据分析</text>
    </view>
  </view>
</template>

<script setup>
defineProps({
  priceRange: String,
  trend: Number,
  heat: String
});
</script>

<style scoped>
.valuation-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 95, 227, 0.08);
  animation: slideUp 0.6s ease-out forwards;
}
.flex {
  display: flex !important;
  align-items: center;
  display: inline-block;
}

.icon-box-image{
  width: 40rpx;
  height: 40rpx;
  border-radius: 999rpx;
  padding: 20rpx;
  display: inline-block;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.title {
  font-size: 18px;
  font-weight: bold;
  color: #005FE3;
}
.badge {
  font-size: 12px;
  color: #005FE3;
  background-color: rgba(0, 95, 227, 0.1);
  padding: 4px 8px;
  border-radius: 999px;
}
.price-section {
  text-align: center;
  padding: 16px 0;
}
.sub-title {
  font-size: 16px;
  color: #666;
}
.price-value {
  font-size: 28px;
  font-weight: bold;
  margin-top: 8px;
  animation: pulseSlow 2s infinite;
}
.gradient-text {
  background: linear-gradient(to right, #005FE3, #007AFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.desc {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}
@keyframes pulseSlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
</style>
